package entities 
{
	/**
	 * ...
	 * @author morgan
	 */
	public class QuestionBlock extends HitWithHeadBlock
	{
		[Embed (source = "../../data/questionBlock.png")] private var img_block:Class;
		public function QuestionBlock(x:int, y:int, scene:GameScene) 
		{
			super(x, y, scene);
			loadGraphic(img_block, true, false , 16, 16);
			frame = 0;
		}
		
		override public function onHit():void 
		{
			super.onHit();
			if (frame == 0)
			{
				frame = 1;
				scene.collectables.add(new Diamond(x, y - 16, scene));
			}
		}
		
	}

}